package com.lky.marshallmall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 整合mybatis-plus
 * 1. 导入依赖：
 *         <!--mybatis-plus  DAO层-->
 *         <dependency>
 *             <groupId>com.baomidou</groupId>
 *             <artifactId>mybatis-plus-boot-starter</artifactId>
 *             <version>3.4.1</version>
 *         </dependency>
 *
 *  2. 配置 ：
 *      1）数据源；
 *      导入驱动，配置数据源
 *      2）配置Mybatis-Plus
 *      使用@MapperScan，SQL映射文件位置
 */

@EnableRedisHttpSession
@EnableFeignClients(basePackages = "com.lky.marshallmall.product.feign")
@MapperScan("com.lky.marshallmall.product.dao")
@SpringBootApplication
@EnableDiscoveryClient
public class MallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallProductApplication.class, args);
    }

}
